/*
 * @Author: wangyu
 * @Date: 2024-11-19 14:08:55
 * @LastEditTime: 2024-12-27 15:59:20
 * @LastEditors: wangyu
 * @Description: 路由列表
 * @FilePath: \dzsq-smartpark-platform\src\router\routes.js
 */
const Routes = [
  {
    path: "/",
    name: "Main",
    redirect: "/overview",
    children: [
      {
        path: "/overview",
        name: "overview",
        meta: {
          title: "园区总览",
          model: "A",
        },
        component: () => import("@/views/overview/index.vue"),
      },
      {
        path: "/assetsManager",
        name: "assetsManager",
        meta: {
          title: "资产管理",
          model: "A",
        },
        component: () => import("@/views/assetsManager/index.vue"),
      },
      {
        path: "/realtimeMonitoring",
        name: "realtimeMonitoring",
        meta: {
          title: "实时监控",
          model: "A",
        },
        component: () => import("@/views/realtimeMonitoring/index.vue"),
      },
      {
        path: "/hotNews",
        name: "hotNews",
        meta: {
          title: "热点新闻",
          model: "A",
        },
        component: () => import("@/views/hotNews/index.vue"),
      },
      {
        path: "/detailed",
        name: "detailed",
        meta: {
          title: "企业详情",
          model: "B",
        },
        component: () => import("@/views/detailed/index.vue"),
      },
      {
        path: "/test",
        name: "test",
        meta: {
          title: "企业详情",
          model: "B",
        },
        component: () => import("@/views/test/index.vue"),
      },
    ],
  },
  {
    path: "/:error*",
    name: "404",
    component: () => import("@/views/404.vue"),
  },
];

export default Routes;
